package com.yupi.springbootinit.statemachine.enums;

import com.yupi.springbootinit.statemachine.core.State;

/**
 * 工艺单状态枚举
 */
public enum ProcessSheetStateEnum implements State {
    
    DRAFT("DRAFT", "草稿", "PROCESS_SHEET"),
    PUBLISHED("PUBLISHED", "已发布", "PROCESS_SHEET"),
    CHANGED("CHANGED", "已变更", "PROCESS_SHEET");
    
    private final String code;
    private final String description;
    private final String stateType;
    
    ProcessSheetStateEnum(String code, String description, String stateType) {
        this.code = code;
        this.description = description;
        this.stateType = stateType;
    }
    
    @Override
    public String getCode() {
        return code;
    }
    
    @Override
    public String getDescription() {
        return description;
    }
    
    @Override
    public String getStateType() {
        return stateType;
    }
}